package com.ytc.data.service.Impl;

import com.ytc.data.mapper.DataMapper;
import com.ytc.data.model.Data;
import com.ytc.data.service.DataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DataServiceImpl implements DataService {

    @Autowired
    private DataMapper dataMapper;

    @Override
    public List<Data> getData(String dataRole){
        return dataMapper.getData(dataRole);
    }
}
